package com.lyq.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyq
 * @since 2020-05-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 科室主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 科室名称
     */
    private String deZhName;

    /**
     * 科室英文名
     */
    private String deEnName;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @Version
    private Integer version;

    /**
     * 科室图片
     */
    @TableField(fill = FieldFill.INSERT)
    private String img;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;


}
